package top.xzxsrq.datahelp.zhixin.module.file.service;

import top.xzxsrq.datahelp.zhixin.module.file.entity.FileTable;
import top.xzxsrq.datahelp.zhixin.module.file.entity.RelaFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @program: datahelp
 * @create: 2021-11-22 18:03
 **/
public interface FileService {
    Map<String, FileTable> readFileMap() throws IOException;
    void writeFile(FileTable fileTable, HttpServletRequest request) throws IOException;
    void writeRelaFile(List<RelaFile> file) throws IOException;
    Map<String, List<RelaFile>> readRelaFile() throws IOException;

    void delFile(String name);
}
